package cn.datawin.bms.modules.customer.service;

import cn.datawin.bms.customer.bo.CstmCustomerBo;
import cn.datawin.bms.customer.bo.CstmCustomerConfigBo;
import cn.datawin.bms.customer.entity.CstmCustomerEntity;
import cn.datawin.bms.customer.entity.CstmCustomerProviderChannelEntity;
import cn.datawin.bms.customer.vo.CstmCustomerConfigVo;
import cn.datawin.bms.customer.vo.CstmCustomerVo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springdoc.core.annotations.ParameterObject;

public interface CstmCustomerService extends IService<CstmCustomerEntity> {

	CstmCustomerEntity newCstmCustomer();

	boolean insertByBo(CstmCustomerBo bo);

	boolean updateByBo(CstmCustomerBo bo);

	CstmCustomerVo getInfo(Long id);

	Page<CstmCustomerVo> customPage(Page<CstmCustomerEntity> page, CstmCustomerEntity query);

	boolean updateStatus(Long customerId, Integer status);


	boolean removeBatch(Long[] ids);

	CstmCustomerConfigVo getConfigByCustomerId(Long customerId);

	boolean updateConfigByCustomerId(CstmCustomerConfigBo configData);
}
